# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=py3-six
_pkgname=six
pkgver=1.15.0
pkgrel=0
pkgdesc="Python 2 and 3 compatibility library"
url="https://pypi.python.org/pypi/six"
arch="noarch"
license="MIT"
depends="python3"
source="$pkgname-$pkgver.tar.gz::https://github.com/benjaminp/$_pkgname/archive/$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

replaces="py-six" # Backwards compatibility
provides="py-six=$pkgver-r$pkgrel" # Backwards compatibility

# circular dependency with pytest
#checkdepends="pytest py3-pytest"
options="!check"

build() {
	python3 setup.py build
}

check() {
	python3 -m pytest -rfsxX
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="2fa813a849ddea7e25fe0bc29f2540414c2669e8bed4602b80bc7bf76f3d55c4b207e459767114f97a52b88e78e87818c7eca01e178c8043507510e493781740  py3-six-1.15.0.tar.gz"
